import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
//引入清除默认样式文件
import './assets/css/reset.css'
//引入element-ui
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)

//封装全局组件
import gCom from './common'
for(let i in gCom){
  Vue.component(i,gCom[i])
}

//创建一个全局的服务器地址
Vue.prototype.$http = 'http://localhost:3000'

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
